#!/bin/bash -ex

INST_DIR=$PWD

[ -e snowman ] || git clone --depth 1 https://github.com/yegord/snowman
cd snowman
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=$INST_DIR ../src
cmake --build .
cmake --build . --target install
